﻿using System;
using PCC.App;

namespace PCC.Receiver.Notification
{
    public class ValidateEMail : AbstractNotificationReceiver
    {
        private readonly string _email;
        private readonly string _username;
        private readonly Guid _Id;

        public ValidateEMail(NotificationManager notificationManager, string username, string email, Guid Id)
            : base(notificationManager)
        {
            _email = email;
            _username = username;
            _Id = Id;
        }

        #region IReceiver Members

        public override void Action()
        {
            _notificationManager.SendEMailValidation(_username, _email, _Id);
        }

        #endregion
    }
}